-- GENERATED SPELL FOR [Sky-Reaver Klum] --


function spell0_31085(pUnit, Event) --@Flight - To Icecrown Airship (H) - Force Cast - Summon Vehicle,n/a--
pUnit:FullCastSpellOnTarget(58352,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31085', 595, 1)
end

function Sorts_31085(pUnit, Event)
local choix_sorts_31085 = math.random(0, 0)
if choix_sorts_31085 == 0 then
pUnit:RegisterEvent('spell0_31085', 1, 1)
end
end

function mob31085_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31085', math.random(1500, 3000), 1)
end

function mob31085_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31085_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31085_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31085, 1, 'mob31085_Action')
RegisterUnitEvent(31085, 2, 'mob31085_Leave')
RegisterUnitEvent(31085, 3, 'mob31085_Kill')
RegisterUnitEvent(31085, 4, 'mob31085_Die')
